package com.nettest.pojo;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringStyle;

import com.nettest.entity.BaseAuditable;

public class AccordionVo implements Serializable {
    private static final long serialVersionUID = -594131865481252531L;

    private String id;
    private String text;
    private String iconCls;
    private String content;

    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((this.getId() == null) ? 0 : this.getId().hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if(!(obj instanceof BaseAuditable))
			return false;
		BaseAuditable other = (BaseAuditable) obj;
		if (this.getId() == null) {
			if (other.getId() != null)
				return false;
		} else if (!this.getId().equals(other.getId()))
			return false;
		return true;
	}
    @Override
    public String toString() {
        return org.apache.commons.lang.builder.ReflectionToStringBuilder
                .toString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
